package com.ruoyi.project.drug.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.drug.service.IDrugProducerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname DrugProducerController
 * @Description
 * @Date 2022/6/28 20:31
 * @Author Lee
 */
@RestController
@RequestMapping("/drugs/producer")
public class DrugProducerController extends BaseController {
    @Autowired
    private IDrugProducerService drugProducerService;


    @GetMapping("/list")
    @PreAuthorize("@ss.hasPermi('drugs:producer:list')")
    public AjaxResult list(){
        return AjaxResult.success(drugProducerService.selectDrugProducerAll());
    }
}
